Skip to content

Enforce four clean custom linters in CGO - #51682

Merged
pelikhan merged 2 commits into
mainfrom
copilot/enforce-readiness-clean-linters
Aug 10, 2026
Merged

Enforce four clean custom linters in CGO#51682
pelikhan merged 2 commits into
mainfrom
copilot/enforce-readiness-clean-linters

Conversation

Copilot AI commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Four registered, type-resolved custom analyzers were not included in the production CI gate despite having no current production findings. This adds regression coverage for ignored filesystem errors, redundant byte-string appends, legacy sort helpers, and loop-scoped defers.

  • CGO production lint gate

    • Add globwalkignorederror
    • Add appendbytestring
    • Add sortslice
    • Add deferinloop
  • WASM parity

    • Enable the same analyzers for the existing WASM production package set.
LINTER_FLAGS="... -globwalkignorederror -appendbytestring -sortslice -deferinloop -test=false"

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Enforce readiness for cleaner linters without production violations Enforce four clean custom linters in CGO Aug 10, 2026
Copilot AI requested a review from pelikhan August 10, 2026 04:53
@pelikhan
pelikhan marked this pull request as ready for review August 10, 2026 05:02
Copilot AI balanced review requested due to automatic review settings August 10, 2026 05:02
@pelikhan
pelikhan merged commit 1d23d17 into main Aug 10, 2026
@pelikhan
pelikhan deleted the copilot/enforce-readiness-clean-linters branch August 10, 2026 05:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enforces four clean custom Go analyzers in production CI for native and WASM builds.

Changes:

  • Enables globwalkignorederror, appendbytestring, sortslice, and deferinloop.
  • Preserves production-only scope with -test=false.
Show a summary per file
File Description
.github/workflows/cgo.yml Adds the four analyzers to native and WASM lint gates.

Review details

Tip

Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants